import pytest


@pytest.fixture(scope="class")
def login():
    print("登录")

    yield

    print("退出")


class TestDemo:
    def test_serach(self,login):
        print("搜索")

    def test_nothing(self):
        print("无")